﻿<%@ Page Title="Registrar Habitación" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="wfrmRegistrarHabitacion.aspx.cs" Inherits="EvolSoftWeb.wfrmRegistrarHabitacion" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
 <style type="text/css">
        #principal
        {
            width: 900px;
            margin: 0 auto;
        }
        .tabs
        {
            width: 90%;
            margin: 0 auto;
        }
        .fieldset_datos
        {
            width: 100%;
        }
        .campos_vacios
        {
            width: 7em;
        }
        .labels
        {
            width: 125px;
        }
        .tabs fieldset
        {
            margin-top: 1.5em;
        }
        .tabs fieldset #fieldset_content
        {
            padding-left: 7em;
        }
        .tabs fieldset #fieldset_content1
        {
            padding-left: 7em;
        }
        .tabs fieldset .fieldset_filas
        {
            padding: .5em 0;
        }
        .filas
        {
            padding: .5em 3em;
        }
        .tabs .titulo
        {
            width: 100%;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 1em;
            margin-top: .5em;
        }
        .pad
        {
            padding: 0.2cm 1cm 0.2cm 1cm;
            text-align: left;
        }
        
        .p
        {
            padding: 0.2cm 0.6cm 0.2cm 0.6cm;
            text-align: left;
        }
        .pad
        {
            padding: 0.2cm 0.6cm 0.2cm 0.6cm;
            
        }
        </style>
    <script type="text/javascript">
        function cargarDescripciones() {
            btnAccion.DoClick();
        }
    </script>
    <script type="text/javascript">
        function soloDocumento(e) {
            key = e.keyCode || e.which;
            tecla = String.fromCharCode(key).toLowerCase();
            letras = "abcdefghijklmnopqrstuvwxyz0123456789";
            especiales = [8, 127];
            tecla_especial = false
            for (var i in especiales) {
                if (key == especiales[i]) {
                    tecla_especial = true;
                    break;
                }
            }

            if (letras.indexOf(tecla) == -1 && !tecla_especial) {
                return false;
            }
        }
    </script>
    <div class="main-header" style="width: 100%">
        <div class="main-titulo">
            Registrar Reserva</div>
    </div>
    <div class="content-form">
    <fieldset>
    <table>
    <tr>
    <td class="pad">
        <dx:ASPxButton ID="btnRegistrar" runat="server" Text="Registrar" Width="100px" 
            onclick="btnRegistrar_Click">
        </dx:ASPxButton>
    </td>
    <td class="pad"> <dx:ASPxButton ID="btnLimpiar" runat="server" Text="Cancelar"  Width="100px">
        </dx:ASPxButton></td>
         <td class="pad"> <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir"  Width="100px">
        </dx:ASPxButton></td>
    </tr>
    
    </table>
    </fieldset>
    
<fieldset>
<legend></legend>
<table width="100%">
<tr>
<td class="pad">Usuario:</td>
<td class="pad">
    <dx:ASPxLabel ID="lblUsuario" runat="server" Text="">
    </dx:ASPxLabel>
    </td>
</tr>
<tr>
<td class="pad">Habitacion:</td>
<td class="pad">
    <dx:ASPxComboBox ID="cbohabitacion" runat="server">
        <Columns>
            <dx:ListBoxColumn Caption="Estado" FieldName="estadoHabitacion" />
            <dx:ListBoxColumn FieldName="estado" Visible="False" />
            <dx:ListBoxColumn FieldName="idHabitacion" Visible="False" />
            <dx:ListBoxColumn Caption="Piso" FieldName="piso" />
            <dx:ListBoxColumn Caption="Precio" FieldName="precioBase" />
            <dx:ListBoxColumn FieldName="idCategoria" Visible="False" />
            <dx:ListBoxColumn FieldName="idtipoHabitacion" Visible="False" />
            <dx:ListBoxColumn Caption="Categoria" FieldName="categoria" />
            <dx:ListBoxColumn FieldName="tipohabitacion" Visible="False" />
            <dx:ListBoxColumn Caption="Detalle" FieldName="detalle" />
        </Columns>
    </dx:ASPxComboBox>
    </td>
</tr>
<tr>
<td class="pad">Fecha Reserva:</td>
<td class="pad">
    <dx:ASPxDateEdit ID="detfecharesevar" runat="server">
    </dx:ASPxDateEdit>
    </td>
</tr>
<tr>
<td class="pad">Fecha Alquiler:</td>
<td class="pad">
    <dx:ASPxDateEdit ID="detfechaalquiler" runat="server">
    </dx:ASPxDateEdit>
    </td>
</tr>
<tr>
<td class="pad">Fecha Salida:</td>
<td class="pad">
    <dx:ASPxDateEdit ID="detfechasalida" runat="server">
    </dx:ASPxDateEdit>
    </td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>

</fieldset>
<table>
<tr>
<td>
    <dx:ASPxGridView ID="grdReserva" runat="server" AutoGenerateColumns="False">
        <Columns>
            <dx:GridViewDataTextColumn VisibleIndex="0" FieldName="idReserva">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="1" FieldName="usuario">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="2" FieldName="idHabitacion">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="3" FieldName="fec_reserva">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="4" FieldName="fec_alquiler">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="5" FieldName="fec_salida">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn VisibleIndex="6" FieldName="idServicios">
            </dx:GridViewDataTextColumn>
        </Columns>
    </dx:ASPxGridView>
    <br />
    </td>
</tr>
</table>
        <br />
        <dx:aspxpopupcontrol id="popupOK" runat="server" width="300px" allowdragging="True"
            clientinstancename="popupOK" closeaction="CloseButton" enablehottrack="False"
            headertext="Mensaje" popuphorizontalalign="WindowCenter" popupverticalalign="WindowCenter"
            showpagescrollbarwhenmodal="True">
            <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
<table align="center">
<tr>
<td></td>
<td>
    <dx:ASPxLabel ID="lblmsgOK" runat="server">
    </dx:ASPxLabel>
    </td>
<td></td>
</tr>
    <tr>
        <td colspan="3">
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="3">
            <dx:ASPxButton ID="btnAceptarOK" runat="server" Text="Aceptar" 
                AutoPostBack="False">
                <clientsideevents click="function(s, e) {
	popupOK.Hide();
}" />
            </dx:ASPxButton>
        </td>
    </tr>
</table>
</dx:PopupControlContentControl>
</ContentCollection>
        </dx:aspxpopupcontrol>
        <dx:aspxpopupcontrol id="popupConfirmacion" runat="server" width="300px" allowdragging="True"
            clientinstancename="popupConfirmacion" closeaction="CloseButton" enablehottrack="False"
            headertext="Confirmar" popuphorizontalalign="WindowCenter" popupverticalalign="WindowCenter"
            showpagescrollbarwhenmodal="True">
            <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
<table align="center" width="100%">
<tr>
<td align="center" colspan="2">
    <dx:ASPxLabel ID="lblmsgConfirmar" runat="server">
    </dx:ASPxLabel>
    </td>
</tr>
    <tr>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <dx:ASPxButton ID="btnConfirmar" runat="server" Text="Aceptar" 
              >
                <clientsideevents click="function(s, e) {
	popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
	popupConfirmacion.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
          <td>
            <dx:ASPxButton ID="btnCancelar" runat="server" Text="Cancelar">
                <clientsideevents click="function(s, e) {
		popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
		popupConfirmacion.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
    </tr>
</table>
</dx:PopupControlContentControl>
</ContentCollection>
        </dx:aspxpopupcontrol>
        <dx:aspxpopupcontrol id="popupConfirmarCateg" runat="server" width="300px" allowdragging="True"
            clientinstancename="popupConfirmarCateg" closeaction="CloseButton" enablehottrack="False"
            headertext="Confirmar" popuphorizontalalign="WindowCenter" popupverticalalign="WindowCenter"
            showpagescrollbarwhenmodal="True">
            <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
<table align="center" width="100%">
<tr>
<td align="center" colspan="2">
    <dx:ASPxLabel ID="lblmsgConfCateg" runat="server">
    </dx:ASPxLabel>
    </td>
</tr>
    <tr>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <dx:ASPxButton ID="btnConfirmarCat" runat="server" Text="Aceptar">
                <clientsideevents click="function(s, e) {
	popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
popupConfirmarCateg.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
          <td>
            <dx:ASPxButton ID="btnCancelar0" runat="server" Text="Cancelar">
                <clientsideevents click="function(s, e) {
		popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
	popupConfirmarCateg.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
    </tr>
</table>
</dx:PopupControlContentControl>
</ContentCollection>
        </dx:aspxpopupcontrol>
        <dx:aspxpopupcontrol id="popupConfirmarHabit" runat="server" width="300px" allowdragging="True"
            clientinstancename="popupConfirmarHabit" closeaction="CloseButton" enablehottrack="False"
            headertext="Confirmar" popuphorizontalalign="WindowCenter" popupverticalalign="WindowCenter"
            showpagescrollbarwhenmodal="True">
            <ContentCollection>
<dx:PopupControlContentControl runat="server" SupportsDisabledAttribute="True">
<table align="center" width="100%">
<tr>
<td align="center" colspan="2">
    <dx:ASPxLabel ID="lblmsgConfirmarHabit" runat="server">
    </dx:ASPxLabel>
    </td>
</tr>
    <tr>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td>
            <dx:ASPxButton ID="btnConfirmarHabit" runat="server" Text="Aceptar">
                <clientsideevents click="function(s, e) {
	popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
popupConfirmarHabit.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
          <td>
            <dx:ASPxButton ID="btnCancelar1" runat="server" Text="Cancelar">
                <clientsideevents click="function(s, e) {
		popupConfirmacion.Hide();
}" />
<ClientSideEvents Click="function(s, e) {
		popupConfirmacion.Hide();
}"></ClientSideEvents>
            </dx:ASPxButton>
        </td>
    </tr>
</table>
</dx:PopupControlContentControl>
</ContentCollection>
        </dx:aspxpopupcontrol>

        <br />
        <br />
        <br />
        <br />
</div>
</asp:Content>
